#include "tcpcommunicationmenu.h"
#include "ui_tcpcommunicationmenu.h"

TCPCommunicationMenu::TCPCommunicationMenu(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::TCPCommunicationMenu)
{
    ui->setupUi(this);
}

TCPCommunicationMenu::~TCPCommunicationMenu()
{
    delete ui;
}

void TCPCommunicationMenu::changeLanguage()
{
    ui->retranslateUi(this);
}

void TCPCommunicationMenu::on_TCPStart_Btn_clicked()
{
    emit TCP_StartSignal();
}

void TCPCommunicationMenu::on_TCPWrite_Btn_clicked()
{
    emit TCP_WriteSignal();
}

void TCPCommunicationMenu::on_TCPRead_btn_clicked()
{
    emit TCP_ReadSignal();
}

void TCPCommunicationMenu::on_forwardPage_Btn_clicked()
{
    this->close();
    emit forwardPageSignal();
}

//void TCPCommunicationMenu::on_nextPage_Btn_clicked()
//{
//    emit nextPageSignal();
//}
